package com.baizhi.springboot.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Evection {
    /*`id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `department` varchar(255) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `site` varchar(255) DEFAULT NULL,
  `vehicle` varchar(255) DEFAULT NULL,
  `thing` varchar(255) DEFAULT NULL,
  `task` varchar(255) DEFAULT NULL,
  `money` varchar(255) DEFAULT NULL,
  `approver` varchar(255) DEFAULT NULL,*/
    private Integer id;
    private String name;
    private String department;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enddate;
    private String site;
    private String vehicle;
    private String thing;
    private String task;
    private String money;
    private String approver;

    @Override
    public String toString() {
        return "Evection{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", department='" + department + '\'' +
                ", startdate=" + startdate +
                ", enddate=" + enddate +
                ", site='" + site + '\'' +
                ", vehicle='" + vehicle + '\'' +
                ", thing='" + thing + '\'' +
                ", task='" + task + '\'' +
                ", money='" + money + '\'' +
                ", approver='" + approver + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getVehicle() {
        return vehicle;
    }

    public void setVehicle(String vehicle) {
        this.vehicle = vehicle;
    }

    public String getThing() {
        return thing;
    }

    public void setThing(String thing) {
        this.thing = thing;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public Evection() {
    }

    public Evection(Integer id, String name, String department, Date startdate, Date enddate, String site, String vehicle, String thing, String task, String money, String approver) {
        this.id = id;
        this.name = name;
        this.department = department;
        this.startdate = startdate;
        this.enddate = enddate;
        this.site = site;
        this.vehicle = vehicle;
        this.thing = thing;
        this.task = task;
        this.money = money;
        this.approver = approver;
    }
}
